// 全局 过滤器
import Vue from "vue";
import format from "date-fns/format";

Vue.filter("filterFormatDate", function (time, formatStr = "yyyy-MM-dd HH:mm:ss") {
	if (!time) return "";
	return format(new Date(time), formatStr);
});
